package fun._6742.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import fun._6742.model.valueobject.BannerVO;
import fun._6742.service.BannerService;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LiuQ
 * @since 2022-09-21
 */
@Api(tags = "轮播图")
@RestController
@RequestMapping("api/banner/v1")
public class BannerController {

    @Resource
    BannerService bannerService;

    @ApiOperation("轮播图列表")
    @GetMapping("list")
    public List<BannerVO> listAllBanner(){
        return bannerService.findAllBanner();
    }
}

